#ifndef _KEYBOARD_H
#define _KEYBOARD_H

#define KEY_NUMBER 256

#ifdef  __cplusplus
extern "C" {
#endif  /* __cplusplus */

  int StoreEnv();
  void RestoreEnv();

  // arg: buffer as output current keys status, can be set as Zero.
  // return: 1 as exist hit on keyboard, 0 as no hit
  int KB_UpdateStatus(char buffer[KEY_NUMBER]);

  int KB_CheckKey(int key);

#ifdef  __cplusplus
}
#endif  /* __cplusplus */

#endif
